slightly cleaner fix for Qt 4.6.
authortsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 16 Aug 2013 04:42:15 +0000 (04:42 +0000)
committertsteven4 <tsteven4@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 16 Aug 2013 04:42:15 +0000 (04:42 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4539 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/kml.cc
gpsbabel/tiger.cc

index 23e379cdd1538800c017c3811e2015765c6685c5..2c3bc644a87f21adea394c2428af14f0ef4678a0 100644 (file)
@@ -1844,7 +1844,7 @@ void kml_write_AbstractView(void)
       // the network position.  So we shove the end of the timespan out to
       // ensure the right edge of that time slider includes us.
       //
-      time_max.setTime_t(realtime_positioning ? kml_time_max.toTime_t() + 600 : kml_time_max.toTime_t());
+      time_max = realtime_positioning ? kml_time_max.addSecs(600) : kml_time_max;
       writer->writeTextElement("end", time_max.toPrettyString());
     }
     writer->writeEndElement(); // Close gx:TimeSpan tag
index a071aa498cc9d1b030c3bea58e8f4c623eba1f4c..d6b0990b4d5426840089486a789a609136ad4804 100644 (file)
@@ -189,7 +189,7 @@ tiger_disp(const waypoint *wpt)
     pin = wpt->icon_descr;
   } else if (wpt->icon_descr.contains("-unfound")) {
     pin = unfoundmarker;
-  } else if (wpt->GetCreationTime().toTime_t() > current_time().toTime_t() - 3600 * 24 * thresh_days) {
+  } else if (wpt->GetCreationTime() > current_time().addSecs(-3600 * 24 * thresh_days)) {
     pin = newmarker;
   } else {
     pin = oldmarker;